<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>扭曲</title>
    <style>
      .outer {
        width: 200px;
        height: 200px;
        border: 2px solid black;
        margin: 0 auto;
        margin-top: 100px;
      }
      .inner {
        width: 200px;
        height: 200px;
        background-color: rgba(135, 206, 235, 0.8);
        /* transform: skewX(30deg); */
        transform: skewY(30deg);
        transform: skew(30deg, 30deg);
      }
    </style>
  </head>
  <body>
    <div class="outer">
      <div class="inner">2D变化</div>
    </div>
  </body>
</html>
